
#ifndef __diylane_cpputest_h
#define __diylane_cpputest_h

#include "application.hpp"

struct TestApp : diylane::Application
{
    TestApp()
    {
    }

    ~TestApp()
    {
    }

    bool setup()
    {
        // initialize database pool
        dbPool.max_workers = 10;
        dbPool.config->host = "crazbot.com";
        dbPool.config->dbname = "diylane_test";
        dbPool.config->user = "testa";
        dbPool.config->password = "zxcv123";

        // installing session middleware
        sessionMiddleware.pool.max_workers = 5;
        sessionMiddleware.pool.addServer("crazbot.com", "is9933laxcj3kknmd3dShs0fa");
        return true;
    }
};

#endif
